package com.hb.trade.server.center.au.service;

import com.hb.core.pojo.center.au.dto.OrgCollectionDTO;
import com.hb.core.pojo.center.au.entity.OrgCollection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 企业收款方式表 服务类
 * </p>
 *
 * @author zhongdl
 * @since 2022-01-15
 */
public interface OrgCollectionService extends IService<OrgCollection> {
        /**
         *
         * @Description: 查询企业的收款码列表信息
         * @Author: zhongdl
         * @Date:2022/1/17 9:55
         * @param orgId:
         * @return: {@link List< OrgCollection> }
         **/
        List<OrgCollection> listOrgCollection(Long orgId);


        /**
         *
         * @Description: 根据收款方表id(逻辑删除)
         * @Author: zhongdl
         * @Date:2022/2/14 9:39
         * @param payeeId:
         * @return: {@link boolean }
         **/
        boolean removeByPayeeId(Long payeeId);

        /**
         *
         * @Description: 根据收款方表id(物理删除)
         * @Author: zhongdl
         * @Date:2022/2/14 9:39
         * @param payeeId:
         * @return: {@link boolean }
         **/
        boolean deleteByPayeeId(Long payeeId);

        /**
         *
         * @Description: 增加企业收款方式信息
         * @Author: zhongdl
         * @Date:2022/2/14 10:17
         * @param collectionDTOList:
         * @return: {@link boolean }
         **/
        boolean saveOrgCollection(List<OrgCollectionDTO> collectionDTOList);

        /**
         *
         * @Description:
         * @Author: zhongdl
         * @Date:2022/2/14 10:45
         * @param payeeId: 收款码表id
         * @return: {@link List< OrgCollectionDTO> }
         **/
        List<OrgCollectionDTO> listOrgCollectionByPayeeId(Long payeeId);
        /**
         *
         * @Description:
         * @Author: zhongdl
         * @Date:2022/2/14 10:45
         * @param payeeId: 收款码表id
         * @param payType: 1 支付宝 2微信 3 银联
         * @return: {@link List< OrgCollectionDTO> }
         **/
        List<OrgCollectionDTO> listOrgCollectionByPayeeId(Long payeeId,Integer payType);


        /**
         * @param collectionId:收款方式id
         * @Description: 查询收款方式是否被关联
         * @Author: zhongdl
         * @Date:2022/5/30 11:15

         * @return: {@link boolean }
         **/
        String  correlatedFlag(Long collectionId);
}
